﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Homework
{
    class Program
    {
        static void Main(string[] args)
        {
            Stack myStack = new Stack();          
            myStack.Push("1 号盘子");
            myStack.Push("2 号盘子");
            myStack.Push("3 号盘子");
            myStack.Push("4 号盘子");
            myStack.Push("5 号盘子");
            myStack.Push("6 号盘子");
            Console.WriteLine("总盘子数:{0}", myStack.Count);
            Console.WriteLine("取出盘子：");
            while (myStack.Count != 0)
            {
                Console.WriteLine(myStack.Pop());
            }
        }
    }
}
